package com.aw.manual.ejemplo3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * User: gmc
 * Date: 21/04/2010
 */
public class EjemploInicializacion {
    public static void main(String[] args) {
        String configFiles = "classpath*:**/ejemplo3/app-config.xml";
        ApplicationContext appCtx = new ClassPathXmlApplicationContext(configFiles);
        String[] beanNames = appCtx.getBeanDefinitionNames();
        for (int i = 0; i < beanNames.length; i++) {
            String beanName = beanNames[i];
            System.out.println(beanName);
        }
    }
}